package prolog.builtins
import prolog.terms._

final case class force() extends FunBuiltin("force", 1) {
  override def exec(p: Prog) = {
    val s = getArg(0).asInstanceOf[Source]
    if (s.getElement().eq(null)) 0 else 1
  }
}